package es.index.document.logs.squid;

import java.util.Date;

import es.index.document.Logs;

/**
 * access log
 * 
 * @author zhoujin
 */
public class SquidAccessLog extends Logs {

	/**
	 * 时间戳
	 */
	private Date _date = null;

	/**
	 * 响应时间
	 */
	private int _responseTime = 0;

	/**
	 * 客户端地址
	 */
	private String _ip = "";

	/**
	 * 结果/状态码
	 */
	private String _resultsStatusCode = "";

	/**
	 * 传输size
	 */
	private int _transmittedSize = 0;

	/**
	 * 请求方式
	 */
	private String _method = "";

	/**
	 * URI
	 */
	private String _uri = "";

	/**
	 * 客户端身份
	 */
	private String _clientIdentity = "";

	/**
	 * 对端编码/对端主
	 */
	private String _peerCodingHost = "";

	/**
	 * 内容类型
	 */
	private String _contentType = "";

	/**
	 * HTTP请求头部
	 */
	private String _requestHeader = "";

	/**
	 * HTTP响应头部
	 */
	private String _responseHeader = "";

	public Date get_date() {
		return _date;
	}

	public void set_date(Date _date) {
		this._date = _date;
	}

	public int get_responseTime() {
		return _responseTime;
	}

	public void set_responseTime(int _responseTime) {
		this._responseTime = _responseTime;
	}

	public String get_ip() {
		return _ip;
	}

	public void set_ip(String _ip) {
		this._ip = _ip;
	}

	public String get_resultsStatusCode() {
		return _resultsStatusCode;
	}

	public void set_resultsStatusCode(String _resultsStatusCode) {
		this._resultsStatusCode = _resultsStatusCode;
	}

	public int get_transmittedSize() {
		return _transmittedSize;
	}

	public void set_transmittedSize(int _transmittedSize) {
		this._transmittedSize = _transmittedSize;
	}

	public String get_method() {
		return _method;
	}

	public void set_method(String _method) {
		this._method = _method;
	}

	public String get_uri() {
		return _uri;
	}

	public void set_uri(String _uri) {
		this._uri = _uri;
	}

	public String get_clientIdentity() {
		return _clientIdentity;
	}

	public void set_clientIdentity(String _clientIdentity) {
		this._clientIdentity = _clientIdentity;
	}

	public String get_peerCodingHost() {
		return _peerCodingHost;
	}

	public void set_peerCodingHost(String _peerCodingHost) {
		this._peerCodingHost = _peerCodingHost;
	}

	public String get_contentType() {
		return _contentType;
	}

	public void set_contentType(String _contentType) {
		this._contentType = _contentType;
	}

	public String get_requestHeader() {
		return _requestHeader;
	}

	public void set_requestHeader(String _requestHeader) {
		this._requestHeader = _requestHeader;
	}

	public String get_responseHeader() {
		return _responseHeader;
	}

	public void set_responseHeader(String _responseHeader) {
		this._responseHeader = _responseHeader;
	}

	public SquidAccessLog() {
	}

	public SquidAccessLog(Date date, int responseTime, String ip,
			String resultsStatusCode, int transmittedSize,
			String method, String uri, String clientIdentity,
			String peerCodingHost, String contentType, String requestHeader,
			String responseHeader) {
		_date = date;
		_responseTime = responseTime;
		_ip = ip;
		_resultsStatusCode = resultsStatusCode;
		_transmittedSize = transmittedSize;
		_method = method;
		_uri = uri;
		_clientIdentity = clientIdentity;
		_peerCodingHost = peerCodingHost;
		_contentType = contentType;
		_requestHeader = requestHeader;
		_responseHeader = responseHeader;
	}
}
